package com.zelin.page.client;

import com.zyg.common.entity.TbPayLog;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.*;

/**
 * Created by WF on 2021/11/19 16:49
 */
@FeignClient("zyg-order")
public interface OrderClient {
    @RequestMapping("order/findPayPlog/{id}")
    //0. 根据id查看支付日志
    TbPayLog findPayLog(@PathVariable("id") String id);


    //1. 修改支付日志
    @RequestMapping("order/updatePaylog")
    void updatePayLog(@RequestBody TbPayLog payLog);

    //2. 修改订单状态
    @RequestMapping("order/updateOrder/{id}")
    void updateOrder(@PathVariable("id") String id);


}
